def props(obj):
    pr = {}
    for name in dir(obj):
        value = getattr(obj, name)
        if not value:
            value = ""
        if not name.startswith('__') and not callable(value) and not name.startswith('_'):
            pr[name] = value
    return pr